package  com.edu.base.ums.memberAccountRecord.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.data.annotation.Transient;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 账户流水记录 包含金额、积分对象 cls_member_account_record
 * 
 * @author luzs
 * @date 2021-06-07
 */
@ApiModel("账户流水记录")
public class ClsMemberAccountRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 会员ID */
    @Excel(name = "会员ID")
    @ApiModelProperty(value = "会员ID")
    private String memberId;
    
    /**会员名称**/
    @Transient
    @ApiModelProperty(value = "会员名称") 
    private String memberName;

    /** 消费类型： 1-商城  2-课程*/
    @Excel(name = "消费类型")
    private Integer payType;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 交易类型：
            金额：30001 充值/ 30002 充会员/ 30003消费/30004 退款/ 30004 提现
            积分：40001:推荐/ 40002推荐人消费/ 40003消费/ 40004消费返积分 */
    @Excel(name = "交易类型")
    @ApiModelProperty(value = "交易类型 (金额：30001 充值/ 30002 充会员/ 30003消费/30004 退款/ 30004 提现; "
    		+ "							积分：40001:推荐/ 40002推荐人消费/ 40003消费/ 40004消费返积分)") 
    private Integer changeType;

    @Excel(name = "账户改变金额")
    @ApiModelProperty(value = "账户改变金额") 
    private BigDecimal changeMoney;

    @Excel(name = "账户金额")
    @ApiModelProperty(value = "账户金额")  
    private String accountNewmoney;

    /** 积分改变数量 */
    @Excel(name = "积分改变数量")
    @ApiModelProperty(value = "积分改变数量")   
    private Long changePoint;

    /** 积分来源：0->购物；1->管理员修改 */
    @Excel(name = "积分来源")
    @ApiModelProperty(value = "积分来源")   
    private String accountNewpoint;

    /** 交易账户类型
            1-银行卡
            2-微信
            3-支付宝 */
    @Excel(name = "交易账户类型")
    @ApiModelProperty(value = "交易账户类型")   
    private String accountType;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "交易时间")    
    private Date transactionTime;

    /** 交易密文 */
    @Excel(name = "交易密文")
    @ApiModelProperty(value = "交易密文")    
    private String transactionInformd5;

    /** 操作备注 */
    @Excel(name = "操作备注")
    @ApiModelProperty(value = "操作备注") 
    private String operateNote;

    /** 操作人员 */
    @Excel(name = "操作人员")
    @ApiModelProperty(value = "操作人员") 
    private String operateMan;
    
    /** 操作人员 */
    @Excel(name = "操作人员联系方式")
    @ApiModelProperty(value = "操作人员联系方式") 
    private String operatePhone;
    
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")  
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMemberId(String memberId) 
    {
        this.memberId = memberId;
    }

    public String getMemberId() 
    {
        return memberId;
    }
    public void setPayType(Integer payType) 
    {
        this.payType = payType;
    }

    public Integer getPayType() 
    {
        return payType;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setChangeType(Integer changeType) 
    {
        this.changeType = changeType;
    }

    public Integer getChangeType() 
    {
        return changeType;
    }
    public void setChangeMoney(BigDecimal changeMoney) 
    {
        this.changeMoney = changeMoney;
    }

    public BigDecimal getChangeMoney() 
    {
        return changeMoney;
    }
    public void setAccountNewmoney(String accountNewmoney) 
    {
        this.accountNewmoney = accountNewmoney;
    }

    public String getAccountNewmoney() 
    {
        return accountNewmoney;
    }
    public void setChangePoint(Long changePoint) 
    {
        this.changePoint = changePoint;
    }

    public Long getChangePoint() 
    {
        return changePoint;
    }
    public void setAccountNewpoint(String accountNewpoint) 
    {
        this.accountNewpoint = accountNewpoint;
    }

    public String getAccountNewpoint() 
    {
        return accountNewpoint;
    }
    public void setAccountType(String accountType) 
    {
        this.accountType = accountType;
    }

    public String getAccountType() 
    {
        return accountType;
    }
    public void setTransactionTime(Date transactionTime) 
    {
        this.transactionTime = transactionTime;
    }

    public Date getTransactionTime() 
    {
        return transactionTime;
    }
    public void setTransactionInformd5(String transactionInformd5) 
    {
        this.transactionInformd5 = transactionInformd5;
    }

    public String getTransactionInformd5() 
    {
        return transactionInformd5;
    }
    public void setOperateNote(String operateNote) 
    {
        this.operateNote = operateNote;
    }

    public String getOperateNote() 
    {
        return operateNote;
    }
    public void setOperateMan(String operateMan) 
    {
        this.operateMan = operateMan;
    }

    public String getOperateMan() 
    {
        return operateMan;
    } 

    public String getOperatePhone() {
		return operatePhone;
	}

	public void setOperatePhone(String operatePhone) {
		this.operatePhone = operatePhone;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	@Override
	public String toString() {
		return "ClsMemberAccountRecord [id=" + id + ", memberId=" + memberId + ", payType=" + payType + ", orderId="
				+ orderId + ", changeType=" + changeType + ", changeMoney=" + changeMoney + ", accountNewmoney="
				+ accountNewmoney + ", changePoint=" + changePoint + ", accountNewpoint=" + accountNewpoint
				+ ", accountType=" + accountType + ", transactionTime=" + transactionTime + ", transactionInformd5="
				+ transactionInformd5 + ", operateNote=" + operateNote + ", operateMan=" + operateMan + ", createDate="
				+ createDate + "]";
	}

	 
}
